package xyz.lisys.spring.arsenal.pojo.impl;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import xyz.lisys.spring.arsenal.annotation.Stars;
import xyz.lisys.spring.arsenal.pojo.Foo;

@Data
@Stars
public class FooImpl implements Foo, InitializingBean {
    private String name;
    private Integer age;

    public FooImpl() {
    }

    public FooImpl(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public void say() {
        System.out.println(getName() + " " + getAge());
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("afterPropertiesSet");
    }
}
